<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
require_once 'base.php';
require_once 'function.php';

global $babBody;

/* MENU */


/* Choix de l'affichage */
$idx = bab_rp('idx', 'departement');

switch ($idx) {
    case "departement":
        include_once 'departement.php';
        $babBody->addItemMenu("formation", bab_translate("Formation", $GLOBALS['babAddonFolder']), $GLOBALS['babAddonUrl'] . "user&idx=formation");
        $babBody->addItemMenu("staff", bab_translate("Staff", $GLOBALS['babAddonFolder']), $GLOBALS['babAddonUrl'] . "user&idx=staff");
        //$babBody->addItemMenu("student", bab_translate("Student", $GLOBALS['babAddonFolder']), $GLOBALS['babAddonUrl'] . "user&idx=student");
        break;
    case "formation":
        $babBody->addItemMenu("departement", bab_translate("Departement", $GLOBALS['babAddonFolder']), $GLOBALS['babAddonUrl'] . "user&idx=departement");
        include_once 'formation.php';
        $babBody->addItemMenu("staff", bab_translate("Staff", $GLOBALS['babAddonFolder']), $GLOBALS['babAddonUrl'] . "user&idx=staff");
        //$babBody->addItemMenu("student", bab_translate("Student", $GLOBALS['babAddonFolder']), $GLOBALS['babAddonUrl'] . "user&idx=student");
        break;
    case "staff":
        $babBody->addItemMenu("departement", bab_translate("Departement", $GLOBALS['babAddonFolder']), $GLOBALS['babAddonUrl'] . "user&idx=departement");
        $babBody->addItemMenu("formation", bab_translate("Formation", $GLOBALS['babAddonFolder']), $GLOBALS['babAddonUrl'] . "user&idx=formation");
        //$babBody->addItemMenu("student", bab_translate("Student", $GLOBALS['babAddonFolder']), $GLOBALS['babAddonUrl'] . "user&idx=student");
        include_once 'staff.php';
        break;
}
?>